

    \filetitle{moving}{Apply function to moving window of observations}{tseries/moving}

	\paragraph{Syntax}

Input arguments marked with a \texttt{\textasciitilde{}} (tilde) sign
may be omitted.

\begin{verbatim}
X = moving(X,~Range,...)
\end{verbatim}

\paragraph{Input arguments}

\begin{itemize}
\item
  \texttt{X} {[} tseries {]} - Tseries object on whose observations the
  function will be applied.
\item
  \texttt{\textasciitilde{}Range} {[} numeric \textbar{} char \textbar{}
  \emph{\texttt{@all}} {]} - Date range from which input time series
  date will be used; \texttt{@all} means the entire range on which the
  input time series \texttt{X} is defined.
\end{itemize}

\paragraph{Output arguments}

\begin{itemize}
\tightlist
\item
  \texttt{X} {[} tseries {]} - Output time series.
\end{itemize}

\paragraph{Options}

\begin{itemize}
\item
  \texttt{\textquotesingle{}function=\textquotesingle{}} {[}
  function\_handle \textbar{} \texttt{@mean} {]} - Function to be
  applied to moving window of observations.
\item
  \texttt{\textquotesingle{}window=\textquotesingle{}} {[} numeric
  \textbar{} \emph{\texttt{@auto}} {]} - The window of observations
  where 0 means the current date, -1 means one period lag, etc.
  \texttt{@auto} means that the last N observations (including the
  current one) are used, where N is the frequency of the input data.
\end{itemize}

\paragraph{Description}

\paragraph{Example}


